#include <stdio.h>
 
int main(void)
{
	int i;
	char string[128];
 
	printf("Please input string:");
	gets(string);
 
	for (i = 0; string[i] != '\0'; i++)
	{
		if (string[i] >= 'a' && string[i] <= 'z')
		{
			string[i] = 'a' + 25 - (string[i] - 'a');
		}
		if (string[i] >= 'A' && string[i] <= 'Z')
		{
			string[i] = 'A' + 25 - (string[i] - 'A');
		}
	}
	
	printf("Output:\nzi fu chuan chang du:%d", i);
	printf("\nmi wen:%s\n", string);
 
	return 0;
}

